package com.gasolinator.a.app;

import android.location.Location;

public class GasolinatorStation
{
  String address;
  Double biodiesel;
  String city;
  String dateUpdated;
  Double distance;
  boolean favorite;
  Double gas95;
  Double gas97;
  Double gas98;
  Double gasoil;
  Double gasoilb;
  Double gasoilc;
  Double gasoilm;
  String isPublic;
  Double latitude;
  Double longitude;
  String name;
  String province;
  String timetable;
  byte type;
  int gasStationId;
    private Location geoPoint;

    public GasolinatorStation()
  {
    Double localDouble1 = Double.valueOf(999.0D);
    this.distance = localDouble1;
    this.gas95 = localDouble1;
    this.gas97 = localDouble1;
    this.gas98 = localDouble1;
    this.gasoil = localDouble1;
    this.gasoilm = localDouble1;
    this.gasoilb = localDouble1;
    this.gasoilc = localDouble1;
    this.biodiesel = localDouble1;
    this.favorite = false;
  }

  public String getAddress()
  {
    return this.address;
  }

  public Double getBiodiesel()
  {
    return this.biodiesel;
  }

  public String getCity()
  {
    return this.city;
  }

  public String getDateUpdated()
  {
    return this.dateUpdated;
  }

  public Double getDistance()
  {
    return this.distance;
  }

  public boolean getFavorite()
  {
    return this.favorite;
  }

  public Double getGas95()
  {
    return this.gas95;
  }

  public Double getGas97()
  {
    return this.gas97;
  }

  public Double getGas98()
  {
    return this.gas98;
  }

  public Double getGasoil()
  {
    return this.gasoil;
  }

  public Double getGasoilb()
  {
    return this.gasoilb;
  }

  public Double getGasoilc()
  {
    return this.gasoilc;
  }

  public Double getGasoilm()
  {
    return this.gasoilm;
  }

  public int getImageResource()
  {
    return GasolinatorTypes.getImageResource(type);
  }

  public String getIsPublic()
  {
    return this.isPublic;
  }

  public Double getLatitude()
  {
    return this.latitude;
  }

  public Double getLongitude()
  {
    return this.longitude;
  }

  public String getName()
  {
    return this.name;
  }

  public double getPrice(String combustible)
  {
      double price = this.gasoil.doubleValue();

      if ("gas95".equals(combustible)) price = this.gas95.doubleValue();
      if ("gas97".equals(combustible)) price = this.gas97.doubleValue();
      if ("gas98".equals(combustible)) price = this.gas98.doubleValue();
      if ("gasoilm".equals(combustible)) price = this.gasoilm.doubleValue();
      if ("gasoilb".equals(combustible)) price = this.gasoilb.doubleValue();
      if ("gasoilc".equals(combustible)) price = this.gasoilc.doubleValue();
      if ("biodiesel".equals(combustible)) price = this.gasoilc.doubleValue();

      return price;
  }

  public String getProvince()
  {
    return this.province;
  }

  public String getTimetable()
  {
    return this.timetable;
  }

  public byte getType()
  {
    return this.type;
  }

  public void setAddress(String paramString)
  {
    this.address = paramString;
  }

  public void setBiodiesel(Double paramDouble)
  {
    this.biodiesel = paramDouble;
  }

  public void setCity(String paramString)
  {
    this.city = paramString;
  }

  public void setFecha(String paramString)
  {
    this.dateUpdated = paramString;
  }

  public void setDistance(Double paramDouble)
  {
    this.distance = paramDouble;
  }

  public void setFavorite(boolean paramBoolean)
  {
    this.favorite = paramBoolean;
  }

  public void setGas95(Double paramDouble)
  {
    this.gas95 = paramDouble;
  }

  public void setGas97(Double paramDouble)
  {
    this.gas97 = paramDouble;
  }

  public void setGas98(Double paramDouble)
  {
    this.gas98 = paramDouble;
  }

  public void setGasoil(Double paramDouble)
  {
    this.gasoil = paramDouble;
  }

  public void setGasoilb(Double paramDouble)
  {
    this.gasoilb = paramDouble;
  }

  public void setGasoilc(Double paramDouble)
  {
    this.gasoilc = paramDouble;
  }

  public void setGasoilm(Double paramDouble)
  {
    this.gasoilm = paramDouble;
  }

  public void setIsPublic(String paramString)
  {
    this.isPublic = paramString;
  }

  public void setLatitude(Double paramInt)
  {
    this.latitude = paramInt;
  }

  public void setLongitude(Double paramInt)
  {
    this.longitude = paramInt;
  }

  public void setName(String paramString)
  {
    this.name = paramString;
  }

  public void setProvincia(String paramString)
  {
    this.province = paramString;
  }

  public void setHorario(String paramString)
  {
    this.timetable = paramString;
  }

  public void setType(byte paramByte)
  {
    this.type = paramByte;
  }

    public void setGasStationId(int gasolineraId) {
        this.gasStationId=gasolineraId;

    }
    public Integer getGasStationId() {
        return this.gasStationId;

    }

    public Location getGeoPoint() {
        return geoPoint;
    }
}
